package game.zqll;

import com.artemis.*;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import game.zqll.systems.*;
import game.zqll.systems.input.InputSystem;

import static com.artemis.WorldConfigurationBuilder.Priority.HIGH;

public class CombatMod implements GameMod {
    @Override
    public String getModId() {
        return "combat-mod";
    }

    @Override
    public void initialize(WorldConfigurationBuilder configBuilder) {
        configBuilder.with(new PlayerSystem());
        configBuilder.with(new InputSystem());
        configBuilder.with(new RecycleEntitySystem());
        configBuilder.with(new ModGuiSystem());
        configBuilder.with(new CollisionSystem());
        configBuilder.with(HIGH, new BackgroundRenderSystem());
        configBuilder.with(new BorderTranRegionManager());
        configBuilder.with(new TextureRegionRenderSystem());
        System.out.println("CombatMod initialize");
    }

    @Override
    public void loadResources(AssetManager assets) {
        assets.load("textures.atlas", TextureAtlas.class);
    }

}
